body {
  font-size: 16px;
}

* {
  transition: background-color .2s ease-in-out, margin .2s ease-in-out, opacity .2s ease-in-out, filter .2s ease-in-out, visibility .2s ease-in-out, transform .2s ease-in-out, border-color .2s ease-in-out;
}

.knowledgeHome {
  width: 100%;
  height: 100%;
}

@media (min-width: 1200px) and (max-width:1920px) {
  .container {
    width: 1140px;
  }
}

@media (min-width: 992px) and (max-width:1199px) {
  .container {
    width: 970px;
  }
}

@media (min-width: 768px) and (max-width:919px) {
  .container {
    width: 768px;
  }
}

@media (max-width:780px) {
  .container {
    >.containerRighr {
      display: none;
    }
  }

}

.container {
  padding-top: 16px;
  margin: 0 auto;
  display: flex;
  background: var(--bg-body);
  flex-direction: row;

  >.containerLeft {
    flex: 1;
    margin-right: 20px;

    div:hover>div:nth-child(2) {
      >p:nth-child(1) {
        color: red;
      }
    }

    >div {
      position: relative;
      width: 100%;
      padding: 0;
      border-radius: 5px;
      margin-right: 14px;
      margin-bottom: 1rem;
      border-radius: 5px;
      overflow: hidden;
      background: var(--bg-second);
      transition: transform .3s;
      display: flex;
      flex-wrap: nowrap;
      padding: 1rem;

      >div:nth-child(1) {
        flex: 0 0 auto;
        width: 40%;
        border-radius: 5px;
        margin-right: 1rem;
        overflow: hidden;

        >img {
          width: 100%;
          height: 100%;
          border-top-right-radius: var(--border-radius);
          border-top-left-radius: var(--border-radius);
          object-fit: cover;
        }
      }

      >div:nth-child(2) {
        display: flex;
        flex: 1;
        flex-direction: column;
        justify-content: space-between;
        padding: 1rem 0;
        overflow: hidden;

        >p:nth-child(1) {
          color: var(--main-text-color);
          overflow: hidden;
          font-weight: 600;
          font-size: 16px;
          line-height: 22px;
          text-overflow: ellipsis;
          white-space: nowrap;
        }

        >p:nth-child(2) {
          display: -webkit-box;
          max-width: 100%;
          margin-top: .5rem;
          color: var(--second-text-color);
          overflow: hidden;
          font-size: 14px;
          text-overflow: ellipsis;
          -webkit-line-clamp: 2;
          -webkit-box-orient: vertical;
        }

        >div:nth-child(3) {
          width: 100%;
          padding-top: .5rem;
          color: #8590a6;
          font-size: 14px;
          line-height: 20px;
        }

      }
    }

  }

  >.containerRighr {
    width: 20rem;
    margin-left: 1rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
    background: var(--bg-body);
    color: inherit;

    >.sticky {
      margin-bottom: 1rem;
      position: sticky;
      top: 1rem;
    }
  }
}
.aside {
  width: 20rem;
  margin-left: 1rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
  background: var(--bg-body);
  color: inherit;
  .sticky {
    position: sticky;
    top: 1rem;
    margin-bottom: 1rem;

    .articlelist,
    .articlecategory,
    .articletags {
      border-radius: 4px;
      margin-bottom: 1.3rem;
      background-color: var(--bg-second);
      box-shadow: var(--box-shadow);
      line-height: 1.29;
      ul {
        padding: 1rem;

        li {
          cursor: pointer;
        }
      }

      .icontitle {
        padding: 1rem;
        border-bottom: 1px solid rgba(178, 186, 194, .15);
        color: var(--main-text-color);
        font-weight: bold;

        span {
          margin-left: .5rem;
        }
      }
    }
  }

  .icontitle {
    padding: 1rem;
    border-bottom: 1px solid rgba(178, 186, 194, .15);
    color: var(--main-text-color);
    font-weight: bold;

    span {
      margin-left: .5rem;
    }
  }
  .articlelist {
    ul {
      padding: 0 1rem 1rem;

      li {
        display: flex;
        flex-wrap: nowrap;
        align-items: stretch;
        padding-top: 1rem;
        color: var(--second-text-color);
      }

      li:hover {
        color: rgb(255, 0, 100);
      }
    }
  }

  .articlecategory {
    ul {
      li {
        padding: 8px 7px;
        border-radius: 4px;
        color: var(--second-text-color);
        line-height: 1.5em;
        transition: all ease-in-out .2s;
        display: flex;
        justify-content: space-between;
      }
      li:hover {
        color: rgb(255, 0, 100);
      }
    }
  }
  .articletags {
    ul {
      li {
        display: inline-block;
        padding: 2px 7px;
        border: 1px solid rgba(178, 186, 194, .15);
        border-radius: 4px;
        margin: 0 7px 7px 0;
        color: var(--second-text-color);
        line-height: 1.5em;
        transition: all ease-in-out .2s;
      }

      li:hover {
        color: rgb(255, 0, 100);
        border: 1px solid rgb(255, 0, 100);
      }
    }
  }
}
